package com.wise.service.cms.content.categoryindustry;

import cn.hutool.core.bean.BeanUtil;
import com.wise.summer.v1.cms.content.category.GetCategoryById;
import com.wise.summer.v1.cms.content.categoryindustry.GetCategoryIndustryById;
import org.springframework.stereotype.Service;
import org.summerframework.model.SummerService;
import org.summerframework.model.SummerServiceBean;

/**
 * @author shaoming
 * @date 2019-09-10
 */
@Service
@SummerService
public class GetCategoryIndustryByIdService implements SummerServiceBean<GetCategoryIndustryById> {

    @Override
    public void sum(GetCategoryIndustryById summer) {
        GetCategoryById getCategoryById = new GetCategoryById();
        BeanUtil.copyProperties(summer, getCategoryById);
        getCategoryById.sum();
        summer.setSummerResult(getCategoryById.getSummerResult());
    }
}
